package ir_v3

import "github.com/astaxie/beego/orm"

type PhysicalZoneCameraZone struct {
	Id             int `orm:"Column(Id)"`
	CamerazoneId   int `orm:"Column(CamerazoneId)"`
	PhysicalzoneId int `orm:"Column(PhysicalzoneId)"`
	Reverse        int `orm:"Column(Reverse)"`
}

func (u *PhysicalZoneCameraZone) TableName() string {
	return PhysicalZoneCameraZoneTBName()
}

func InsertPhysicalZoneCameraZone(pzcz PhysicalZoneCameraZone) (int64, error) {
	o := orm.NewOrm()
	return o.InsertOrUpdate(&pzcz)
}
